package edu.sctu.practice.class02.xuejiahua.java_dog;

/**
 * Created by Administrator on 2015/9/18.
 */
public class HomeDog extends Dog {

   public HomeDog(String name,int age){
        this.name = name;
       this.age = age;


    }

  public void Demo(){
      if (judgeAge()){
          printName();
          printColor();

      }else {
          printName();
         printColor();
          printAge();
          printNumber();
          printSex();

      }

  }



}
